import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'app-line',
  templateUrl: './line.component.html',
  styleUrls: ['./line.component.scss'],
})
export class LineComponent implements OnInit {

  @Input() tagData:any;
  cssStr:any={};
  constructor() { }

  ngOnInit() {
    let cssStyles=this.tagData.data.cssStyle.split(",");
    for(var i=0; i<cssStyles.length; i++){
      let cssStrs=cssStyles[i].split(":");
      this.cssStr[cssStrs[0]]=cssStrs[1];
    }
    console.log(this.cssStr);
  }

}
